unpack_by_attribute

function unpack_by_attribute(instance: instance, attribute: attribute): (type: type, values: gtv)?